Skip to content

docs(adr): specify Promptfoo grading output contract - #1649

Merged
christso merged 1 commit into
mainfrom
promptfoo-output-contract-adr
Jul 4, 2026
Merged

docs(adr): specify Promptfoo grading output contract#1649
christso merged 1 commit into
mainfrom
promptfoo-output-contract-adr

Conversation

@christso

@christso christso commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

The Promptfoo alignment docs now separate authored YAML compatibility from AgentV's canonical result artifacts. ADR 0017 specifies the major-version public grading.json contract as aggregate pass/score/reason plus always-present graders[] and nested checks[], while explicitly rejecting legacy public aliases such as assertion_results, assertions, passed-only, top-level checks, and dynamic single-grader shapes.

This also records why Promptfoo's export/internal result format is inspiration rather than AgentV's artifact contract: AgentV borrows the clean aggregate grading vocabulary and component-breakdown idea, then keeps the filesystem/Git-native split run bundle as the source of truth. Summary and index guidance now prefers pass_rate, pass_count, sample_count, and passed/pass_any, reserving pass_at_k for true sampling metrics with a real k.

The older restructure plan is marked as historical for the stale grading/pass@k sections, and the review-summary plan now states that Beads are the implementation source of truth while PRs and plans summarize them for review.

Scope

  • Updates ADR/spec and plan text only.
  • Does not implement run-artifact writers, Dashboard readers, SDK schemas, parser behavior, or grader execution changes.
  • Leaves av-kfik.28.2 through av-kfik.28.7 open for the sequenced implementation work.

Validation

  • bun install to hydrate the worktree dependencies; no lockfile changes.
  • bun run lint.
  • git diff --check.
  • Local markdown link check not run: CI uses lychee-action, and no lychee binary is installed in this worktree.
  • Dedicated CE subagent review skipped because this session did not authorize delegation; performed a manual contract/diff review instead.

Post-Deploy Monitoring & Validation

No additional operational monitoring required. This is a docs/ADR/spec-only change and has no runtime, deploy, API, CLI, artifact-writer, or Dashboard behavior.

Related

Related: av-kfik.28.1.


Compound Engineering
GPT--5

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: a4bdd4b
Status: ✅  Deploy successful!
Preview URL: https://5442eaab.agentv.pages.dev
Branch Preview URL: https://promptfoo-output-contract-ad.agentv.pages.dev

View logs

@christso
christso marked this pull request as ready for review July 4, 2026 12:30
@christso
christso merged commit 8c7c4df into main Jul 4, 2026
8 checks passed
@christso
christso deleted the promptfoo-output-contract-adr branch July 4, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant